for file; do
	if ! [ -e "$file" ]; then 
		echo $file doesn\'t exist
	elif ! [ -r "$file" ]; then
		echo $file can\'t be read
	elif [ -f "$file" ]; then
		echo $file
		cat $file
	elif [ -d "$file" ]; then
		echo $file
		ls $file
	fi
done
